import time
t_start = time.time()
file1 = open('m1_sorted.txt')
file2 = open('m2_reverse.txt')
file3 = open('m3_shuffle.txt')
sp1 = file1.readlines()
sp2 = file2.readlines()
sp3 = file3.readlines()
if sp1[0] > sp1[1]:
    sp1[0], sp1[1] = sp1[0], sp1[1]
print(sp1)
t_end = time.time()
print('m1_sorted', round((t_end - t_start)*1000,0), 'milliseconds')
if sp1[0] > sp1[1]:
    sp1[0], sp1[1] = sp1[0], sp1[1]
print(sp2)
t_end = time.time()
print('m2_reverse', round((t_end - t_start)*1000,0), 'milliseconds')
if sp1[0] > sp1[1]:
    sp1[0], sp1[1] = sp1[0], sp1[1]
print(sp3)
t_end = time.time()
print('m3_shuffle', round((t_end - t_start)*1000,0), 'milliseconds')
